package com.xz.xzutils.utils.dto;

import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author DONG.WANG17@HAND-CHINA.COM
 * @since 2025-01-07 15:49
 */
@Data
public class SqlDTO {
    // 状态（解析异常、参数设置异常）
    private Boolean parseSuccess;
    private String message;
    // sql 解析 key
    private String sqlKey;
    // sql 模板
    private String templateSql;
    // sql 参数
    private String parameters;
    // sql 操作 SELECT UPDATE DELETE INSERT
    private String operation;
    // 结果sql
    private String sql;
    // 是否需要参数
    private Boolean needParameters;

    public interface Operation{
        String INSERT = "INSERT";
        String UPDATE = "UPDATE";
        String DELETE = "DELETE";
        String SELECT = "SELECT";
    }
}
